<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>个人信息页面</title>
    <style>
        body {
            background: white;
            font: 14px Arial, 'Microsoft YaHei';
            margin: 0px;
            padding: 0px;
        }

        #container {
            display: flex;
            flex-wrap: wrap;
            width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }

        #header {
            width: 860px;
            height: 300px;
            background: white;
            margin-left: 20px;
            border-radius: 5px;
            border: 1px #b2b2b2 solid;
        }

        #header_top {
            width: 860px;
            height: 230px;
            margin: 0px;
            background-image: url("/static/image/bg.jpg");
            background-repeat: no-repeat;
            background-size: cover;

        }

        {##header_top img#}
        {#{#}
        {#    padding-top: 60px;#}
        {#    padding-left: 20px;#}
        {#    width: 120px;#}
        {#    height: 120px;#}
        #username {
            color: white;
            margin-top: 65px;
            margin-left: 30px;
            width: 200px;
            height: 30px;
            border-radius: 5px;
            border: 1px solid darkgrey;
        {#background: white;#}
        }

        #username p {
            text-align: center;
            line-height: 1px;
            font-size: 17px;
        }

        #selfhtml {

            margin-right: 10px;
            margin-top: 67px;
            border-radius: 15px;
            border: 1px solid darkgrey;
        {#background: #1a3aff;#} height: 30px;
            width: 90px;
        }

        #selfhtml p {
            line-height: 0px;
            padding-left: 10px;
            font-size: 17px;
        }

        #set {
            margin-right: 19px;
            margin-top: 70px;
            border-radius: 50px;
            background-image: url("/static/image/sc8.png");
            border: 1px solid darkgrey;
            height: 20px;
            width: 20px;
        }

        #header_bottom {
            display: flex;
        }

        #header_bottom_2 {
            margin-top: 30px;
            padding-left: 100px;
            font-size: 20px;
        }

        #header_bottom_1 {
            margin-top: 30px;
            margin-left: 240px;
            font-size: 20px;
        }

        #menu ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        #menu ul li {
            border: #cccccc 1px solid;
            margin-left: 50px;
            padding-top: 10px;
            width: 120px;
            height: 30px;
            background-image: url("/static/image/bg5.png");
        }

        #menu ul li img {
            float: left;
            padding-left: 10px;
        }

        #menu ul li p {
            line-height: 1px;
            float: left;
            text-align: center;
            padding-left: 10px;
        }

        #content {
            width: 1160px;
            margin-left: 20px;
        }

        #content h1 {
            margin-left: 40px;
        }

        #content hr {
            width: 1100px;
        }

        #content ul {
            margin: 0px;
            margin-left: 40px;
            padding: 0px;
            list-style: none;
        }

        #content ul li {
            float: left;
            width: 160px;
            height: 190px;
        }

        #content ul li img {
            margin: 10px;
            width: 102px;
            height: 142px;
        }

        .wrap a {
            display: block;
            width: 220px;
            height: 330px;
            text-decoration: none;
            color: #000;
        }

        .wrap {
            width: 220px;
            height: 330px;
            position: relative;
            overflow: hidden;
            font-family: arial, sans-serif;
            border: 0;
            margin: 0 10px;
            float: left;
            display: inline;
        }

        .wrap img {
            border: 0;
        }

        .wrap i {
            display: block;
            width: 220px;
            height: 330px;
            position: absolute;
            left: 0;
            top: 300px;
            z-index: 1;
            background: #000;
            filter: alpha(opacity=40);
            filter: progid:DXImageTransform.Microsoft.Alpha(opacity=40);
            opacity: 0.40;
            -webkit-transition: all 0.6s ease-in-out;
        }

        .wrap p {
            display: block;
            width: 120px;
            height: 330px;
            position: absolute;
            left: 0;
            top: 300px;
            z-index: 1;
            background: transparent;
            font-size: 12px;
            color: #fff;
            padding: 0;
            margin: 0;
            line-height: 16px;
            -webkit-transition: all 0.6s ease-in-out;
        }

        .wrap p b {
            display: block;
            font-size: 18px;
            color: #fc0;
            text-align: center;
            margin: 0;
            padding: 0;
            line-height: 30px;
        }

        .wrap p span {
            color: black;
            display: block;
            padding: 10px;
            line-height: 20px;
        }

        .wrap a:hover {
            direction: ltr;
        }

        .wrap a:hover i {
            top: 0;
        }

        .wrap a:hover p {
            top: 0;
        }

        .clear {
            clear: left;
        }


    </style>
</head>
<body>
<div id="container">
    <iframe src="/myapp/main2/" frameborder="0" width="1200px" height="123.5px"></iframe>
    <div id="header">
        <div id="header_top">
            <div style="display:flex;">
                <div style="padding: 50px">
                    <input type="file" id="btn_file3" name="consignerRdFile" accept="image/jpg,image/jpeg,image/gif,image/png" style="display:none" onchange="imgChange(event,'consignerRdSign')">
                    <img id="consignerRdSign" src="/static/image/sc7.png" width="100px" height="100px" onclick="F_Open_dialog('btn_file3')">
                </div>
                <div id="username" style="margin-left: 30px;margin-top: 70px">
                    <p>书友545454545454555</p>
                </div>
                <div style=";width:400px ">
                    <div id="selfhtml" style="float: right;margin-right: 60px;color: white">
                        <p>个人主页</p>
                    </div>
                    <a href="/myapp/selfset/" style="float: right">
                        <div id="set">
                        </div>
                    </a>
                </div>

            </div>
        </div>
        <div id="header_bottom">
            <p id="header_bottom_1">关注:<span>111</span></p>
            <p id="header_bottom_2">粉丝:<span>111</span></p>
        </div>
    </div>
    <div id="menu">
        <ul>
            <li><img src="/static/image/m1.png" alt="">
                <p><a href="/myapp/main/">首页</a></p></li>
            <li><img src="/static/image/m6.png" alt="">
                <p>我的书架</p></li>
            <li><img src="/static/image/m4.png" alt="">
                <p>交易记录</p></li>
            <li><img src="/static/image/m5.png" alt="">
                <p>作家专区</p></li>
            <li><img src="/static/image/m3.png" alt="">
                <p>投票记录</p></li>
            <li><img src="/static/image/m2.png" alt="">
                <p>我的书评</p></li>
        </ul>
    </div>
    <div id="content">
        <h1>我的书架</h1>
        <hr>
        <ul>
            <li class="wrap"><a href="#x"><img src="/static/image/b1.png" alt="">
                <p><b>重生野性时代</b><span>Red-eyed tree frogs, as their name states</span></p></a></li>
            <li class="wrap"><img src="/static/image/b2.png" alt="">
                <p>姐姐有妖气</p></li>
            <li class="wrap"><img src="/static/image/b1.png" alt="">
                <p>重生野性时代</p></li>
            <li class="wrap"><img src="/static/image/b1.png" alt="">
                <p>重生野性时代</p></li>
            <li class="wrap"><img src="/static/image/b1.png" alt="">
                <p>重生野性时代</p></li>
            <li class="wrap"><img src="/static/image/b1.png" alt="">
                <p>重生野性时代</p></li>
            <li class="wrap"><img src="/static/image/b1.png" alt="">
                <p>重生野性时代</p></li>
            <li class="wrap"><img src="/static/image/b1.png" alt="">
                <p>重生野性时代</p></li>
            <li class="wrap"><img src="/static/image/b1.png" alt="">
                <p>重生野性时代</p></li>
        </ul>
        <hr>

    </div>
</div>

</body>
<script>
    function F_Open_dialog(id) {
        document.getElementById(id).click();
    }

    function imgChange(e, imageid) {
        console.info(e.target.files[0]);//图片文件
        console.log(e.target.value);//这个也是文件的路径和上面的dom.value是一样的
        var input = document.getElementById('consignerRdSign');
        input.value=e.target.value;
        alert(input.value)
        var reader = new FileReader();
        reader.onload = (function (file) {
            return function (e) {
                console.info(this.result); //这个就是base64的数据了
                document.getElementById(imageid).src = this.result;
            };
        })(e.target.files[0]);
        reader.readAsDataURL(e.target.files[0]);
    }
</script>
</html>